package com.chengxusheji.mapper;

import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;
import com.chengxusheji.po.Transfer;

public interface TransferMapper {
	/*添加商品调拨信息*/
	public void addTransfer(Transfer transfer) throws Exception;

	/*按照查询条件分页查询商品调拨记录*/
	public ArrayList<Transfer> queryTransfer(@Param("where") String where,@Param("startIndex") int startIndex,@Param("pageSize") int pageSize) throws Exception;

	/*按照查询条件查询所有商品调拨记录*/
	public ArrayList<Transfer> queryTransferList(@Param("where") String where) throws Exception;

	/*按照查询条件的商品调拨记录数*/
	public int queryTransferCount(@Param("where") String where) throws Exception; 

	/*根据主键查询某条商品调拨记录*/
	public Transfer getTransfer(int transferId) throws Exception;

	/*更新商品调拨记录*/
	public void updateTransfer(Transfer transfer) throws Exception;

	/*删除商品调拨记录*/
	public void deleteTransfer(int transferId) throws Exception;

}
